package com.pai4j.ugc.repository.dao;

import com.pai4j.ugc.repository.entity.MomentAiContentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface IMomentAiContentDAO extends JpaSpecificationExecutor<MomentAiContentEntity>,
        JpaRepository<MomentAiContentEntity, Long> {

    Optional<MomentAiContentEntity> findByMomentId(Long momentId);
}

